import xmlrpclib
from pprint import pprint

uid=1
pwd="1989112"
dbname="11"
tcp_port="8069"
sock=xmlrpclib.ServerProxy("http://127.0.0.1:%s/xmlrpc/object" % tcp_port)

model="nmbw800.mymodel"
method="addIntance"

ids='{"TotalTable":[320,320,200,200,100,171,242,314,385,457,528,600,600,800,800,800,800,800,800,800],"TimeTStart":[0,0,0,0,0,0,0,0,0,0],"TimeTEnd":[2359,0,0,0,0,0,0,0,0,0],"TimeTAmount":[100,0,0,0,0,0,0,0,0,0],"CalTable":[100,0,0,0,0,0,0,0,0,0],"CanOver":10,"XlPer":100,"WaterAuto":0,"WaterTime":2,"WaterSpace":3,"UsePass":0,"Addr":2000001000,"RouteName":666666,"RoutePass":12345678,"ServerIP":[10,33,51,107],"ServerPort":9999,"Stage":1,"Day":3,"HasEat":0,"EatDelay":10,"Sons":10,"Mday":11,"Rev":0,"Password":0,"Sum":3560}'

result = sock.execute(dbname, uid, pwd,
                      model,method ,
                      ids)
print "\n==== %s of %s ====" % (model, method)
pprint(result)